package com.wicket.okrfinance.dal.po.mbg;

import com.baomidou.mybatisplus.annotation.*;
import com.wicket.okrfinance.common.annotations.LikeFlag;
import com.wicket.okrfinance.common.annotations.OrderFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

/**
 *
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("oms_target_costset")
public class OmsTargetCostset extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 目标预算设置ID
   */
  @TableId(value = "target_cost_set_id", type = IdType.UUID)
  @NotNull(message = "targetCostSetId不能为空")
  private String targetCostSetId;

  /**
   * 周期预算金额
   */
  @TableField(value = "cycle_budget_amount")
  @NotNull(message = "周期预算金额不能为空")
  @ApiModelProperty("周期预算金额")
  private Double cycleBudgetAmount;

  /**
   * 冗余预算单位
   */
  @TableField(value = "cycle_budget_unit")
  @NotNull(message = "冗余预算单位不能为空")
  @ApiModelProperty("冗余预算单位")
  private String cycleBudgetUnit;

  /**
   * 预算周期模型编码 PARENT_CYCLE:父周期 SUB_CYCLE:子周期 METAPHASE:中期 CAPITAL_SOURCE:资金来源周期
   */
  @TableField(value = "budget_cycle_mode_type_code")
  @NotNull(message = "预算周期模型编码不能为空")
  @ApiModelProperty("预算周期模型编码")
  private String budgetCycleModeTypeCode;

  /**
   * 预算金额占比
   */
  @TableField(value = "budget_rate")
  @ApiModelProperty("预算金额占比")
  private Double budgetRate;

  /**
   * 被评对象目标周期ID
   */
  @TableField(value = "eva_obj_target_cycle_id")
  @NotNull(message = "被评对象目标周期ID不能为空")
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 预算是否已设置 TRUE:是 FALSE:否
   */
  @TableField(value = "is_budget_seted")
  @NotNull(message = "预算是否已设置不能为空")
  @ApiModelProperty("预算是否已设置")
  private String isBudgetSeted;

  /**
   * 资金来源ID
   */
  @TableField(value = "capital_source_id")
  @NotNull(message = "资金来源ID不能为空")
  @ApiModelProperty("资金来源ID")
  private String capitalSourceId;

  /**
   * 关联目标内容类型编码 TRUE:是 FALSE:否
   */
  @TableField(value = "target_cycle_content_type_code")
  @NotNull(message = "关联目标内容类型编码不能为空")
  @ApiModelProperty("关联目标内容类型编码")
  private String targetCycleContentTypeCode;

  /**
   * 关联目标内容ID
   */
  @TableField(value = "target_cycle_content_id")
  @NotNull(message = "关联目标内容ID不能为空")
  @ApiModelProperty("关联目标内容ID")
  private String targetCycleContentId;

  /**
   * 冗余评价模板ID
   */
  @TableField(value = "evaluation_template_id")
  @NotNull(message = "冗余评价模板ID不能为空")
  @ApiModelProperty("冗余评价模板ID")
  private String evaluationTemplateId;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @TableField(value = "subject_life_cycle")
  @NotNull(message = "主体生命周期不能为空")
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 是否存档 TRUE:是 FALSE:否
   */
  @TableField(value = "is_archive")
  @NotNull(message = "是否存档不能为空")
  @ApiModelProperty("是否存档")
  private String isArchive;

  /**
   * 操作人就职记录ID
   */
  @TableField(value = "operation_induction_id")
  @NotNull(message = "操作人就职记录ID不能为空")
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 创建人就职记录ID
   */
  @TableField(value = "create_induction_id")
  @NotNull(message = "创建人就职记录ID 不能为空")
  @ApiModelProperty("创建人就职记录ID")
  private String createInductionId;

  /**
   * 发布人就职记录ID
   */
  @TableField(value = "release_induction_id")
  @ApiModelProperty("发布人就职记录ID")
  private String releaseInductionId;

  /**
   * 存档人就职记录ID
   */
  @TableField(value = "archive_induction_id")
  @ApiModelProperty("存档人就职记录ID")
  private String archiveInductionId;

  /**
   * 操作时间
   */
  @TableField(value = "operate_time")
  @NotNull(message = "操作时间不能为空")
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 创建时间
   */
  @TableField(value = "create_time")
  @NotNull(message = "创建时间不能为空")
  @ApiModelProperty("创建时间")
  private Date createTime;

  /**
   * 发布时间
   */
  @TableField(value = "release_time")
  @ApiModelProperty("发布时间")
  private Date releaseTime;

  /**
   * 存档时间
   */
  @TableField(value = "archive_time")
  @ApiModelProperty("存档时间")
  private Date archiveTime;

  /**
   * 是否作废 TRUE:是 FALSE:否
   */
  @TableField(value = "is_valid")
  @NotNull(message = "是否作废不能为空")
  @ApiModelProperty("是否作废")
  private String isValid;

  /**
   * 创建于空间ID
   */
  @TableField(value = "space_id")
  @NotNull(message = "创建于空间ID不能为空")
  @ApiModelProperty("创建于空间ID")
  private String spaceId;

  /**
   * 创建于联盟应用ID
   */
  @TableField(value = "app_id")
  @NotNull(message = "创建于联盟应用ID不能为空")
  @ApiModelProperty("创建于联盟应用ID")
  private String appId;
}
